<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>蛇蛇~~~</title>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            display: flex;
            flex-direction: column;
            justify-content: center;
            overflow: hidden;
            height: 100vh;
            background-color: #c9c9c9;
        }
        
        h1 {
            text-align: center;
            font-weight: 700;
            font-size: 0.8rem;
            color: rgba(0, 166, 205, .7);
            text-shadow: 0px 0.1rem 0.1rem rgba(0, 0, 0, .5);
        }
        
        section {
            overflow: hidden;
            margin: .520833rem auto;
            width: 2.5rem;
            /* height: 1.4rem; */
            font-size: .208333rem;
            border: 1px solid #05f;
            border-radius: 0.2rem;
        }
        
        ul {
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            height: 100%;
        }
        
        ul li {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: .036042rem;
            list-style: none;
            background-color: transparent;
            font-weight: 700;
            text-align: center;
            color: #333;
            transition: background-color .45s;
            cursor: pointer;
        }
        
        ul li:hover {
            background: -webkit-linear-gradient(0, #00c8, #0054);
            border-radius: 0.2rem;
            text-shadow: 0px 0.1rem 0.1rem rgba(0, 0, 0, .2);
        }
        
        .tips {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            margin: 0;
            padding: 0.2rem;
            font-size: 0.2rem;
            text-align: center;
            color: #0094ff;
            background-color: #fff;
        }
        
        .scoreTab {
            position: absolute;
            left: 0;
            right: 0;
            top: .052083rem;
            padding: .052083rem;
            font-size: .145833rem;
            color: #f53899;
            z-index: 200;
        }
        
        aside {
            position: absolute;
            left: 80%;
            right: 0;
            top: .8rem;
            height: 50%;
            z-index: 100;
        }
        
        .rankTitle {
            text-align: center;
            font-size: .182292rem;
            background-color: rgba(204, 100, 100, .5);
        }
        
        .rankList {
            display: flex;
            padding: .104167rem;
            height: 100%;
            color: gold;
            text-align: center;
            font-size: .15625rem;
            background: -webkit-linear-gradient(45deg, #0095ff31, #43a8ff);
        }
        
        .rankList ol {
            flex: 1;
        }
        
        .rankList ol>li {
            padding: .052083rem 0;
            font-size: .104167rem;
            font-family: Times New Roman;
        }
        
        .rankList .rankNameList {
            font-family: Microsoft Yahei;
        }
        
        .rankList ol {
            list-style: none;
        }
    </style>
</head>

<body>
    <img src="images/angel.gif" style="display: none;" alt="">
    <script>
        let pic = document.querySelector('img');
        let timer = null;
        document.addEventListener('mousemove', function(e) {
            if (timer) return;
            pic.style.display = 'block';
            pic.style.width = 0.8 + 'rem';
            pic.style.position = 'absolute';
            // pic.style.transform = 'translate(-50%,-50%)';
            angmove();
            timer = setTimeout(angmove, 15);

            function angmove() {
                pic.style.top = e.pageY + 5 + 'px';
                pic.style.left = e.pageX + 5 + 'px';
                timer = null;
            }
        })
    </script>
    <div class="scoreTab" style='display: none;'></div>
    <aside>
        <h2 class="rankTitle">排行榜</h2>
        <div class="rankList">
            <ol class="rankNameList">
                <li>玩家名</li>
            </ol>
            <ol class="rankScoreList">
                <li>分数</li>
            </ol>
        </div>
    </aside>

    <!-- ----------------------引入适配文件--------------------------- -->
    <script src="./js/flexible.js"></script>
    <!-- ----------------------引入渲染父类--------------------------- -->
    <script src="./js/Render.js"></script>
    <!-- ----------------------引入标题文件--------------------------- -->
    <script src="./js/Title.js"></script>
    <!-- ----------------------引入食物文件--------------------------- -->
    <script src="./js/Food.js"></script>
    <!-- ----------------------引入蛇体文件--------------------------- -->
    <script src="./js/Snake.js"></script>
    <!-- ----------------------引入地图文件--------------------------- -->
    <script src="./js/Map.js"></script>
    <!-- ----------------------引入游戏控制文件--------------------------- -->
    <script src="./js/Game.js"></script>
    <script>
        document.addEventListener('selectstart', function() {
            arguments[0].preventDefault();
        })
        let title = new Title();
        title.render();
    </script>

</body>

</html>